<?php

add_theme_support('menus');

add_theme_support('post-thumbnails');
add_image_size( 'slideshow-home', 980, 357, true );
add_image_size( 'quem-somos', 391, 335, true );
add_image_size( 'parceiro', 125, 125, true );
add_image_size( 'parceiro-home', 87, 87, true );
add_image_size( 'brindes-home', 128, '', true );


function limit_words($string, $word_limit)
{
  $words = explode(' ', $string, ($word_limit + 1));
  if(count($words) > $word_limit)
  array_pop($words);
  return implode(' ', $words);
}

?>